package com.atguigu.sms.client;

import com.atguigu.sms.client.fallback.CoreUserInfoClientFallback;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程调用service-core 接口
 */
@FeignClient(value = "service-center", fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    /**
     * 手机号是否存在
     * @param mobile
     * @return
     */
    @GetMapping("/eduucenter/ucenterMember/isExist/{mobile}")
    boolean isExist(
            @ApiParam(value = "用户名",required = true)
            @PathVariable String mobile);

}
